#ifndef LAUNCH_NODE_H
#define LAUNCH_NODE_H

#include <vector>
#include "object/node_info.h"

/**
 * @brief:  launch文件中的所有节点信息
 */
class LaunchNode
{
public:
    LaunchNode() = default;

    void addNode(const NodeInfo &nodeInfo)
    {
        nodeList.push_back(nodeInfo);
    }

    void addLaunchNode(const LaunchNode &launchNode)
    {
        for (const auto &nodeInfo: launchNode.nodeList)
        {
            addNode(nodeInfo);
        }
    }

    std::vector<NodeInfo> nodeList;
};

#endif //LAUNCH_NODE_H
